package com.amarsoft.task.security;

import java.util.Properties;

public class DefaultUser
  implements TaskUser
{
  private String id;
  private String name;
  private Properties properties;

  public DefaultUser()
  {
    this.properties = new Properties();
  }

  public String getId()
  {
    return this.id;
  }

  public String getName()
  {
    return this.name;
  }

  public Properties getProperties()
  {
    return this.properties;
  }

  public String getProperty(String propName)
  {
    return this.properties.getProperty(propName);
  }

  public void setProperty(String propName, String propValue)
  {
    if (propName != null)
      this.properties.setProperty(propName, propValue);
  }

  public void setId(String id)
  {
    this.id = id;
  }

  public void setName(String name)
  {
    this.name = name;
  }
}